package com.example.demo.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class PopularBook {
    private String bookid;  //从数据库中查询出来对应的图书编号
    private String bookname;
    private Integer borrowNum; //该图书被借阅的次数

    @Override
    public String toString() {
        return "PopularBook{" +
                "bookid='" + bookid + '\'' +
                ", bookname='" + bookname + '\'' +
                ", borrowNum=" + borrowNum +
                '}';
    }
}
